package cn.bx.bid.dao;

import cn.bx.bid.entity.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentDao {
    //查询单个
    Department get(long id);

    // 查询所有
    public List<Department> findALL();

    // 增加
   int add(Department d);

   //修改
   int update(Department d);

   //删除
   int del(long id);

   //批量删除
   int batchDel(@Param("ids") long[] ids);

   //模糊查询+分页
    public List<Department> search(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("departmentName") String departmentName);

    //总条数
    public int searchTotal(@Param("departmentName") String departmentName);


}
